package cn.wangzg.fragmentdemo;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
    //静态加载Fragment
    public void btnStaticLoad(View view){
        startActivity(new Intent(this,StaticLoadActivity.class));
    }
    //动态加载Fragment
    public void btnDynamicLoad(View view){
        startActivity(new Intent(this,DynamicLoadActivity.class));
    }
    //新闻浏览
    public void btnNewsBrowse(View view){
        startActivity(new Intent(this,NewsBrowseActivity.class));
    }
}
